<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>
<body>
    <div>
        {{info}}
        <input type="button" value="按钮1" v-on:click="f()">
        <input type="button" value="按钮2" @click="f()">
        <input type="text" v-model="msg">
        <input type="button" value="弹出文本框内容" @click="a()">
    </div>
    <script src="../js./vue.min.js"></script>
    <script>
        let v = new Vue({
            el:"body>div",
            data:{
                info:"王冉婷",msg:""
            },
            methods:{
                f(){
                    alert("王冉婷");
                },
                a(msg){
                    alert(v.msg);
                }

            }
        })
    </script>
</body>
</html>